using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CodeStory.Core.ObjectEntity;
using Activa.CoolStorage;
using CodeStory.Core.ObjectBusiness;
using CodeStory.Core.UI;
using CodeStory.Core;

namespace CodeStory.WebApplication.Modules.Core.Admin
{
	[NavigationPortlet("CodeStory_Core_Admin_LayoutManager")]
	public partial class LayoutManager : Portlet
	{

		protected override void OnInit(EventArgs e) {
			base.OnInit(e);
			Load += new EventHandler(LayoutManager_Load);
		}

		void LayoutManager_Load(object sender, EventArgs e) {
			//throw new Exception("The method or operation is not implemented.");
			if (!IsPostBack) {
				BindLayouts();
			}
		}

		private void BindLayouts() {
			gvLayout.DataSource = LayoutBusiness.GetAllLayouts();
			gvLayout.DataBind();
		}
	}
}